﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DataAccessLayer.Adapter;
using DataAccessLayer.Entity;
namespace BussinessLayer
{
    public class TaiKhoanBussiness
    {
        TaiKhoanAdapter taiKhoanAdapter = new TaiKhoanAdapter();
        object kq;
        public DataTable LoadaiKhoan()
        {
            return taiKhoanAdapter.LoadTaiKhoan();
        }
        public void ThemTaiKhoan(clsTaiKhoan clTaiKhoan)
        {
            taiKhoanAdapter.ThemmTaiKhoa(clTaiKhoan);
        }
        public void SuaTaiKhoan(clsTaiKhoan clTaiKhoan)
        {
            taiKhoanAdapter.SuaTaiKhoan(clTaiKhoan);
        }
        public void XoaTaiKhoan(clsTaiKhoan clTaiKhoan)
        {
            taiKhoanAdapter.XoaTaiKhoan(clTaiKhoan);
        }

        public DataTable Login(clsTaiKhoan clTaiKhoan)
        {
            return taiKhoanAdapter.Login(clTaiKhoan);
        }
        public object KiemTraMa(clsTaiKhoan clsTaiKhoan)
        {
            kq=taiKhoanAdapter.KiemTraTrungMa(clsTaiKhoan);
            return kq;
        }
        public object KiemTraTen(clsTaiKhoan clsTaiKhoan)
        {
            kq = taiKhoanAdapter.KiemTraTrungTen(clsTaiKhoan);
            return kq;
        }
    }
}
